/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: Lyn
 * Date: 2025-01-16
 * Time: 19:35
 */

public class Student{
    private static String name;
    private static int age;

    //静态代码块
    static {
        name = "李华";
        age = 18;
    }
    public void show(){
        System.out.println("姓名："+name+"年龄"+age);
    }

}
public class text3 {
    public static void main(String[] args) {
        Student student = new Student();
    }
}
